package com.mkl.ttxt.pd.task;

import com.mkl.ttxt.pd.util.PlanUtilV2;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class ResetTask {
    private static final Logger logger = LoggerFactory.getLogger(ResetTask.class);

    @Scheduled(cron = "0 0/10 * * * ?")
    public void task1(){
//        logger.info("重置，当前状态为：" + PlanUtilV2.getFlag());
        PlanUtilV2.resetFlag();
    }
}
